package io.finer.erp.jeecg.bas.service;

import io.finer.erp.jeecg.bas.entity.ZrkOrderProduct;
import io.finer.erp.jeecg.bas.vo.OrderProductVO;

import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

import org.jeecg.common.api.vo.Result;

/**
 * @Description: 商城订单产品明细表
 * @Author: jeecg-boot
 * @Date:   2020-08-22
 * @Version: V1.0
 */
public interface IZrkOrderProductService extends IService<ZrkOrderProduct> {

	public List<ZrkOrderProduct> selectByMainId(String mainId);
	
	public ZrkOrderProduct getLatestByCustom(String customId, String categoryId);

	public Result<?> getChild(String id);
	
	/**
	 * @Description 添加订单产品明细
	 * @param orderProductVO
	 * @return
	 * Create at: 2021-02-23 14:50:36
	 * @author: xzhs
	 * Revision:
	 *    2021-02-23 14:50:36 - first revision by xzhs
	 */
	public Result<?> addOrderProduct(OrderProductVO orderProductVO);
	
	/**
	 * @Description 删除订单产品明细
	 * @param orderProductVO
	 * @return
	 * Create at: 2021-02-23 14:50:36
	 * @author: xzhs
	 * Revision:
	 *    2021-02-23 14:50:36 - first revision by xzhs
	 */
	public Result<?> deleteOrderProduct(String id);
	
	
	public boolean changePrice(ZrkOrderProduct orderProductVo);
	
	/**
	 * @Description 根据客户ID查询
	 * @param customerId
	 * @return
	 * Create at: 2021-08-25 15:54:52
	 * @author: duany
	 * Revision:
	 *    2021-08-25 15:54:52 - first revision by duany
	 *        
	 */
	public List<ZrkOrderProduct> getByCustomerId(String customerId);
	
	public List<ZrkOrderProduct> getByCustomerId2(String customerId);

	/**
	 * @Description 查找出库未完成的订单详情
	 * @param customerId
	 * @return
	 * Create at: 2021-09-06 11:20:21
	 * @author: duany
	 * Revision:
	 *    2021-09-06 11:20:21 - first revision by duany
	 *        
	 */
	public List<ZrkOrderProduct> getCustomerNotOutCompleteProduct(String customerId);
}
